#ifndef COMMENT_IDENTIFIER_STRUCT_CSV
#define COMMENT_IDENTIFIER_STRUCT_CSV


#include "comment_identifier_struct.hpp"
#include "type_conversion.hpp"


class comment_identifier_struct_csv: public comment_identifier_struct
{
   private: 

        static const enum csv_field_tags
	{
	  ID =0,
	  CODE
	} csv_field;

public:       
	comment_identifier_struct_csv(std::vector<std::string> const& v)
	{
		
	   switch(v.size()-1)
 	   {
		case CODE: 
			set_value(v[CODE]);
		case ID:
			set_id(type_conversion<int>::to_number(v[ID]));
			break;
		default: break;
	   }
		
		std::cout << "[comment_identifier_struct_csv.comment_identifier_struct_csv] " << *this << std::endl;
	}
		
	comment_identifier_struct_csv(): comment_identifier_struct() {};
};

#endif
